package com.iaz.tech.tools.uml.file.impl;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import com.alibaba.fastjson.JSONObject;
import com.iaz.tech.tools.uml.IUMLNeuronAble; 
import com.iaz.tech.tools.uml.relationship.Relationship;
import com.iaz.tech.tools.uml.relationship.impl.NeuronImportRelationship;

import lombok.Data;
import lombok.EqualsAndHashCode;

@EqualsAndHashCode(callSuper=false)
@Data
public class NeuronImportLoader extends NeuronRelationLoader  {
    /**
     * 日志
     */
	private final static Logger logger = (Logger) LoggerFactory.getLogger(NeuronExtendLoader.class);

    @Override
    public Relationship toRelationship(IUMLNeuronAble umlObj) throws Exception {
        if (umlObj == null) {
            throw new IllegalArgumentException("umlObj 不能为空");
        }
        if (!(umlObj instanceof NeuronImportRelationship)){
            throw new IllegalArgumentException("umlObj 必须是 NeuronImportRelationship 类型");
        } 
        NeuronImportRelationship import_relation = (NeuronImportRelationship) umlObj;
        return import_relation;
    }
}
